package com.yjz.jvm.juc.线程.如何捕获线程里面的异常;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyThread extends Thread {
    @Override
    public void run() {
//        try {
            System.out.println(1 / 0);
//        } catch (Exception e) {
//            log.info("发生异常拉");
//        }


    }
}
